package com.neuedu.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neuedu.dao.PurchasingReturnDao;
import com.neuedu.model.PurchasingReturn;
import com.neuedu.service.PurchasingReturnService;

@Service
public class PurchasingReturnServiceImpl implements PurchasingReturnService {

	// 依赖注入
	@Autowired
	private PurchasingReturnDao PurchasingReturnDao;
	
	public void setPurchasingReturnDao(PurchasingReturnDao PurchasingReturnDao) {
		this.PurchasingReturnDao = PurchasingReturnDao;
	}
	
	@Override
	public int countPurchasingReturn() {
		return PurchasingReturnDao.countPurchasingReturn();
	}

	@Override
	public List<PurchasingReturn> findAll(Map<String, Object> map) {
		return PurchasingReturnDao.findAll(map);
	}

	@Override
	public int addPurchasingReturn(PurchasingReturn u) {
		return PurchasingReturnDao.addPurchasingReturn(u);
	}

	@Override
	public int updatePurchasingReturn(PurchasingReturn u) {
		return PurchasingReturnDao.updatePurchasingReturn(u);
	}

	@Override
	public int deletePurchasingReturn(int id) {
		return PurchasingReturnDao.deletePurchasingReturn(id);
	}


}
